import React from "react";
import { asyncComponent } from "@/compoments";
const Home = asyncComponent(() => import("@/pages/home"));
const ListAdd = asyncComponent(() => import("@/pages/listAdd"));
const ListManage = asyncComponent(() => import("@/pages/listManage"));
const Admin = asyncComponent(() => import("@/pages/admin"));
const Upload = asyncComponent(() => import("@/pages/upload"));
const ListFiles = asyncComponent(() => import("@/pages/listFiles"));

// 路由映射表
export const routerObject = {
  Home: <Home></Home>,
  ListAdd: <ListAdd></ListAdd>,
  ListManage: <ListManage></ListManage>,
  Admin: <Admin></Admin>,
  Upload: <Upload></Upload>,
  ListFiles: <ListFiles></ListFiles>
}